package com.key.controller.user;

import com.key.common.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author tc
 * @create 2023-02-17 10:24
 */
@Api(value = "用户接收",tags = "用户接收接口API")
@Controller
@RequestMapping(value = "/usrReception" )
public class UsrReceptionController {


    /**
     * 依据签收与否显示订单
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/showWaitingReception",method = RequestMethod.GET)
    @ApiOperation(value = "签收清单表接口",notes = "显示各个签收状态下的清单",httpMethod ="get")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage",value = "当前页",paramType = "query",dataType = "int",required = true),
            @ApiImplicitParam(name = "pageSize",value = "每页显示总数",paramType = "query",dataType = "int",required = true),
            @ApiImplicitParam(name = "sign",value = "签收与否",paramType = "query",dataType = "int",required = true)
    })
    public R showWaitingReception(@RequestParam(name = "currentPage") Integer currentPage,
                                  @RequestParam(name = "pageSize") Integer pageSize,
                                  @RequestParam(name = "sign") Integer sign){
        return null;
    }

    /**
     * 签收功能
     */
    @ResponseBody
    @RequestMapping(value = "/sign",method = RequestMethod.GET)
    @ApiOperation(value = "签收功能接口",notes = "改变未签收状态的清单",httpMethod ="get")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "OddNumbers",value = "单号",paramType = "query",dataType = "String",required = true),
            @ApiImplicitParam(name = "Type",value = "单号类型",paramType = "query",dataType = "String",required = true)
    })
    public R sign(@RequestParam(name = "OddNumbers") String OddNumbers,@RequestParam(name = "Type") String Type){
        return null;
    }

}
